import request from './request'
import { BaseResponseDto, ResponseDto } from './types'
import { LoginInputDto, LoginOutputDto } from './types/auth'
const rootUrl = '/auth/'

export function Login(data: LoginInputDto) {
  return request<ResponseDto<LoginOutputDto>>({
    url: `${rootUrl}Login`,
    method: 'post',
    data: data,
  })
}
export function Logout() {
  return request<BaseResponseDto>({
    url: `${rootUrl}Logout`,
    method: 'post',
  })
}
